/**
 * Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.babble.manage.service;

import com.babble.manage.dto.ImgCategoryDTO;
import com.babble.manage.dto.QueryImgCategoryDTO;
import com.babble.manage.entity.ImgCategory;
import com.babble.manage.vo.ImgCategoryVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 图片分类表 服务类
 *
 * @author Blade
 * @since 2021-11-21
 */
public interface IImgCategoryService extends IService<ImgCategory> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param imgCategory
	 * @return
	 */
	IPage<ImgCategoryVO> selectImgCategoryPage(IPage<ImgCategoryVO> page, ImgCategoryVO imgCategory);

	/**
	 * 创建图片分类
	 *
	 * @param categoryDTO 图片分类信息
	 * @return
	 */
	ImgCategory create(ImgCategoryDTO categoryDTO);

	/**
	 * 分页条件查询图片分类
	 *
	 * @param queryImgCategoryDTO 分页条件
	 * @return
	 */
	IPage<ImgCategory> list(QueryImgCategoryDTO queryImgCategoryDTO);

	/**
	 * 更新图片分类
	 *
	 * @param id          图片分类id
	 * @param categoryDTO 需要修改的信息
	 * @return
	 */
	ImgCategory update(String id, ImgCategoryDTO categoryDTO);

	/**
	 * 根据id删除图片分类
	 *
	 * @param id 图片分类id
	 */
	void delete(String id);
}
